import _fetch from './requst.js'

// 定义接口请求

function getPhoneCode (data) {
  return _fetch({
    url: '/sendsms',
    method: 'post',
    data: data
  })
}

// 定义api

function goRegister (data) {
  return _fetch({
    url: '/register',
    method: 'post',
    data
  })
}

//输出出去

export { getPhoneCode, goRegister }
